package com.leinao.category.dto;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @Description 分类实体
 * @author lizi
 * @date 2019/03/06 下午6:48
 * @Version 1.0
 */
public class CategoryDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1078883521823042850L;

	/**
	 * 分类ID
	 */
	private Long id;

	/**
	 * 父分类，顶级分类parentId＝0
	 */
	private Long parentId;

	/**
	 * 分类名称
	 */
	private String name;

	/**
	 * 类型: 0-全局自定义，1-算法和数据集
	 */
	private Integer type;

	/**
	 * 分类标签来源类型: 0-全局自定义，1-系统提供
	 */
	private Integer customType;

	/**
	 * 分类子节点
	 */
	private List<CategoryDto> childList;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getCustomType() {
		return customType;
	}

	public void setCustomType(Integer customType) {
		this.customType = customType;
	}

	public List<CategoryDto> getChildList() {
		return childList;
	}

	public void setChildList(List<CategoryDto> childList) {
		this.childList = childList;
	}

	@Override
	public String toString() {
		return "CategoryDto{" +
				"id=" + id +
				", parentId=" + parentId +
				", name='" + name + '\'' +
				", type=" + type +
				", customType=" + customType +
				", childList=" + childList +
				'}';
	}
}
